package com.zyd.module.admin.model;

import com.baomidou.mybatisplus.annotation.*;


import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 
 *
 * @author tiezhu
 * @email 1766419110@mail.com
 * @date 2022-04-04 00:17:38
 */
@Data
@TableName("product_type")
public class ProductType implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId(value = "id")
	private Integer id;

	@TableField(value = "fid")
	private Integer fid;

	/**
	 * 类型名称
	 */
	@TableField("type_name")
	private String typeName;

	/**
	 * 类型描述
	 */
	@TableField("type_desc")
	private String typeDesc;

	/**
	 * 是否删除
	 */
	@TableField("is_delete")
	private Integer isDelete;

	private Integer sort;

	/**
	 * 创建时间
	 */

	@TableField(value = "create_time",fill = FieldFill.INSERT)
	private Date createTime;

	@TableField(exist = false)
	private ProductType parent;
	@TableField(exist = false)
	private List<ProductType> children;


}
